import 'package:flutter/material.dart';

class CustomScrollViewPage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text('ListView测试页面'),
          backgroundColor: Colors.blue,
        ),    //将参数当作页面标题

        body: new ListView(
          itemExtent: 30,//ListView在滚动方向上每个item所占的高度值。
          shrinkWrap: true,
          padding: const EdgeInsets.all(20.0),
          children: <Widget>[
            const Text('const: I\'m dedicating every day to you'),
            const Text('const: Domestic life was never quite my style'),
            const Text('const: When you smile, you knock me out, I fall apart'),
            const Text('const: And I thought I was so smart'),
            new Text('new: 生成的标签'),
            new Container(

              child: new Row(

                children: <Widget>[

                  new Text('And I thought I was so smart 1'),
                  new RaisedButton(
                    
                    onPressed: null,
                    child: new Text("RaisedButton"),
                    
                  ),
                  
                ],

              ),

            ),
          ],
        ),
    );
  }
}